<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<button>click</button>
<script>
  var btn = document.querySelector('button');

  btn.addEventListener('click', function () {
    // location.assign('http://www.baidu.com');
    // location. replace('http://www.baidu.com');
    location.reload(true);

  })

</script>
</body>
</html>